package
{
	import flash.display.MovieClip;
	
	public class ChipObject extends MovieClip
	{
		public var chipNumber:MovieClip;
		
		public function ChipObject()
		{
			super();
			this.stop();
			this.chipNumber.stop();
		}
		
		private var _data:Object;
		
		public function set data(value:Object):void {
			this._data = value;
			this.update();
		}
		
		public function update():void {
			this.gotoAndStop(this._data.colorFrame);
			this.chipNumber.gotoAndStop(this._data.chipFrame);
		}
	}
}